project(chapterFirstExample)
cmake_minimum_required(VERSION 2.6)

set(workroot /mnt/e/Users/zhengjiaheng/gitee/lotdd)

include_directories(
   ${workroot}/c2/1
   ${workroot}/googletest-src/googletest/include
   ${workroot}/googletest-src/googlemock/include)

link_directories(
   ${workroot}/lib)

find_package(Threads REQUIRED)

add_definitions(-std=c++0x)
set(CMAKE_CXX_FLAGS "${CMAXE_CXX_FLAGS} -Wall")

set(sources 
   main.cpp 
   SoundexTest.cpp)
add_executable(hank ${sources})

target_link_libraries(hank Threads::Threads)
target_link_libraries(hank gtest)
TARGET_LINK_LIBRARIES(hank gmock)
